export interface ArticleInter {
  id: number;
  author: string;
  authorEmail: string;
  title: string;
  subtitle: string;
  createdAt: Date | null;
  updatedAt: Date | null;
  views: number | null;
  stickyWeight: number | null;
  status: "DRAFT" | "PUBLISHED" | "ARCHIVED" | any; // 兼容其他可能的类型
  isEncrypted: number | null;
  deletedAt: Date | null;
  deletedBy: number | null;
  tags:TagsInter[];
}


export interface ArticleContentInter {
  articleId: number | null;
  content: string;
  summary: string;
  password: string;
}

export interface TagsInter {
  id: number ,
  type: string,
  name: string,
  createdId: Date | null;
  createdAt: Date | null;
  updatedAt: Date | null;
}

export interface ArticleTagInter{
  id:number,
  articleId:number,
  tagId:number
}



